<?php
/**
 * Created by PhpStorm.
 * User: lixy
 * Date: 2017/1/10
 * Time: 10:51
 */
use yii\helpers\Url;

$web = Url::base();
?>

    <style type="text/css">


        .await-window .shade {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.2);
            position: fixed;
            left: 0;
            top: 0;
            z-index: 999;
        }

        .await-window .window-content {
            width: 250px;
            height: 250px;
            border-radius: 10px;
            background: rgba(0, 0, 0, .7);
            position: fixed;
            top: 50%;
            left: 50%;
            margin-left: -125px;
            margin-top: -125px;
            z-index: 9999;
        }


        .await-window .window-content img {
            width: 80px;
            height: 80px;
            margin-left: 85px;
            margin-top: 44px;
        }

        .await-window .window-content p {
            font-size: 20px;
            font-family: "微软雅黑";
            color: #FFFFFF;
            text-align: center;
            margin-top: 40px;
        }
    </style>

<div class="await-window" style="display: none;">
    <div class="window-content">
        <img src="<?=$web?>/images/mall/awit-loding.gif"/>
        <p>title</p>
    </div>
    <div class="shade"></div>
</div>

<script>
    function waittingShow(title){
        waittingSetTitle(title);
        $('.await-window').show();
    }
    function waittingHide(){
        $('.await-window').hide();
    }
    function waittingSetTitle(title){
        $('.await-window p').html(title);
    }
</script>
